package cn.bdqn.service.impl;

import cn.bdqn.mapper.RightMapper;
import cn.bdqn.pojo.Right;
import cn.bdqn.service.RightService;

import javax.annotation.Resource;
import java.util.List;

public class RightServiceImpl implements RightService {
    @Resource
    private RightMapper rightMapper;
    @Override
    public List<Right> findAllRights() {
        return rightMapper.selectList(null);
    }
    @Override
    public List<Right> findRightsByRoleId(Long roleId) {
        return rightMapper.findRightsByRoleId(roleId);
    }
}
